﻿<Window x:Class="GivingAPresentation.MainView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:GivingAPresentation"
        Title="Giving a presentation" Height="350" Width="525" Closed="Window_Closed" Closing="Window_Closing"
            Icon="/GivingAPresentation;component/Presentation.ico" Loaded="Window_Loaded">
    <Window.Resources>
        <vm:MainViewModel x:Key="viewModel"/>
    </Window.Resources>
    <Grid>
        <TabControl HorizontalAlignment="Stretch" Margin="12,34,12,12" Name="tabControl" VerticalAlignment="Stretch">
            <TabItem Header="Default" Name="tabItemDefault">
                    <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                        <StackPanel Name="stackPanelDefault" Focusable="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                        </StackPanel>
                    </ScrollViewer>
            </TabItem>
            <TabItem Header="About" Name="tabItemAbout">
                <Grid>
                    <TextBlock Margin="111,9,6,0" Name="textBlockAbout" Text="TextBox" Height="96" VerticalAlignment="Top" TextWrapping="WrapWithOverflow" />
                    <Image Height="96" HorizontalAlignment="Left" Margin="9,9,0,0" Name="imageIcon" Stretch="Uniform" VerticalAlignment="Top" Width="96" Source="/GivingAPresentation;component/Presentation.ico" />
                    <Label Content="Download latest version from http://givingapresentation.codeplex.com" Height="28" Margin="6,111,9,0" Name="labelDownload" VerticalAlignment="Top" />
                    <ScrollViewer Margin="9,145,6,6" Name="scrollViewer" ClipToBounds="False">
                    <TextBlock Text="This sample application was initially created to demostrate how to use Managed 
Extensibility Framework, how to do Dependency Inyection and Inversion of Control,
etc. It turned out to become a useful aplication. To read more about the
aforementioned technologies, visit http://fernandomachadopiriz.com.

Icons by VisualPharm, visit http://www.visualpharm.com, licensed under Creative Commons Attribution-No Derivative Works 3.0 Unported License"  HorizontalAlignment="Stretch" Name="labelBlog" Height="Auto" VerticalAlignment="Stretch" Width="Auto" ClipToBounds="False" TextWrapping="Wrap" />
                    </ScrollViewer>
                </Grid>
            </TabItem>
        </TabControl>
        <CheckBox Content="I'm currently giving a presentation" Height="16" HorizontalAlignment="Left" Margin="12,12,0,0"
            Name="checkBoxPresenting" VerticalAlignment="Top" Width="479" 
            IsChecked="{Binding Source={StaticResource viewModel}, Mode=TwoWay, Path=Model.Presenting}"/>
    </Grid>
</Window>
